package gui;

import javafx.fxml.FXML;
import javafx.scene.control.TextArea;
import javafx.stage.Stage;

public class XmlViewerController {
	@FXML private TextArea txaXmlMetadata;
	
	private Main mainApp;
	private Stage dialogStage;
	
	/**
	 * Initializes the controller class. This method is automatically called
	 * after the fxml file has been loaded.
	 */
	@FXML
	private void initialize() {}
	
	/**
	 * Sets the text to the components of the pane
	 * @param roi
	 */
	public void setXml(String xml){
		txaXmlMetadata.setText(xml);
	}
	
	/**
	 * Is called by the main application to give a reference back to itself.
	 * 
	 * @param mainApp
	 */
	public void setMainApp(Main mainApp) {
		this.mainApp = mainApp;
	}

	/**
	 * Sets the stage of this dialog.
	 * @param dialogStage
	 */
	public void setDialogStage(Stage dialogStage) {
		this.dialogStage = dialogStage;
	}

	
}
